package com.spzx.order.service;

import com.github.pagehelper.PageInfo;
import com.spzx.model.dto.h5.OrderInfoDto;
import com.spzx.model.entity.order.OrderInfo;
import com.spzx.model.vo.h5.TradeVo;

/**
 * Project: spzx-parent
 * Package: com.spzx.order.service.impl
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2024/4/28 上午12:28
 */
public interface OrderInfoService {
    //确认下单
    TradeVo getTrade();

    //提交订单
    Long submitOrder(OrderInfoDto orderInfoDto);

    //根据订单id获取订单信息
    OrderInfo getOrderInfo(Long orderId);

    //立即购买
    TradeVo buy(Long skuId);

    //订单状态查询
    PageInfo<OrderInfo> findUserPage(Integer page, Integer limit, Integer orderStatus);

    //获取订单信息
    OrderInfo getByOrderNo(String orderNo);

    //更新订单状态
    void updateOrderStatus(String orderNo, Integer orderStatus);
}
